package com.xb.mapper;

import com.xb.entity.OutpatientQueue;
import com.xb.entity.Register;

import java.util.List;

/**
 * entityMapper接口
 */
//@Mapper
public interface OutpatientQueueMapper {

    public OutpatientQueue selectOutpatientQueueByRegister(Register register);

    public OutpatientQueue selectOutpatientStatus(int patientId);


    public List<OutpatientQueue> selectAllOutpatientQueueList(int userId);

    /**
     * 新增entity
     *
     * @param outpatientQueue entity
     * @return 结果
     */
    public int insertOutpatientQueue(OutpatientQueue outpatientQueue);

    /**
     * 修改entity
     *
     * @param outpatientQueue entity
     * @return 结果
     */
    public int updateOutpatientQueue(OutpatientQueue outpatientQueue);

    public int updateStatus(OutpatientQueue outpatientQueue);

    /**
     * 删除entity
     *
     * @param id ID
     * @return 结果
     */
    public int deleteOutpatientQueueById(Integer id);

    public List<OutpatientQueue> searchPendingPatientsByUserId(Integer id);

}
